package com.etoak.stock.pojo.domin;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class StockBlockDomain {
    //公司数量
    @ExcelProperty(value = {"股票涨幅信息统计表","公司数量"},index = 2)
    private Integer companyNum;
    //交易量
    @ExcelProperty(value = {"股票涨幅信息统计表","交易量"},index = 1)
    private Long tradeAmt;
    //板块编码
    @ExcelProperty(value = {"股票涨幅信息统计表","股票编码"},index = 0)
    private String code;
    //平均价格
    @ExcelProperty(value = {"股票涨幅信息统计表","平均价格"},index = 3)
    private BigDecimal avgPrice;
    //板块名称
    @ExcelProperty(value = {"股票涨幅信息统计表","板块名称"},index = 4)
    private String name;
    //当前日期
    @ExcelProperty(value = {"股票涨幅信息统计表","日期"},index = 9)
    @DateTimeFormat("yyy-MM-dd HH:mm")//easyExcel的注解-》excel
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm")
    private Date curDate;
    //交易总金额

    @ExcelProperty(value = {"股票涨幅信息统计表","交易总金额"},index = 5)
    private BigDecimal tradeVol;
    //涨幅
    @ExcelProperty(value = {"股票涨幅信息统计表","涨幅"},index = 6)
    private BigDecimal updownRate;
}
